import uuid
import os


class Config:
    # ToDesk远程控制(第一次启动需要手动配置)
    ROBOT_REMOTE_CODE = 'XXX XXX XXX'
    ROBOT_REMOTE_PWD = 'remote'
    # 机器id, 长度15, 自动生成 唯一
    ROBOT_ID = uuid.getnode()
    # 主目录
    PATH = os.path.dirname(os.path.abspath(__file__))
    # 云服务器地址
    REMOTE_SEVER_API = 'http://119.29.129.235:10001'
    # Java后端地址
    JAVA_SERVER_API = 'http://192.168.2.233:8999'
    # 本地Chromium端口
    CHROME_PORT = 9333
    # 本地日志目录
    # LOG_PATH = os.path.join(PATH, 'utils\\logger')
    # LOG_GLOBAL_PATH = os.path.join(LOG_PATH, 'GLOBAL.log')
    # 本地Web服务
    LOCAL_PID: int = None
    LOCAL_PORT = 8000
    LOCAL_LOCAL_API = f'http://127.0.0.1:{LOCAL_PORT}'


Setting = Config()


if __name__ == '__main__':
    print(type(Setting.ROBOT_ID))